package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_user_log")
public class UserLog {
    /** 主键，序号 */
    @TableId(type = IdType.AUTO)
    private Long id ;
    /** 用户id */
    private Integer uid ;
    /** 操作类型 */
    private Integer type ;
    /** 详情 */
    private String info ;
    /** 城市 */
    private String city ;
    /** 设备 */
    private String mobile ;
    /** 创建时间 */
    private Date ctime ;

    public UserLog(Integer uid, Integer type, String info, String city, String mobile) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.city = city;
        this.mobile = mobile;
        this.ctime=new Date();
    }
}
